package com.cqndt.disaster.device.controller;

import java.util.Map;
import java.util.List;
import com.cqndt.disaster.device.util.Result;
import com.cqndt.disaster.device.service.SysMenuService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lgb
 * @date 2020-8-26
 * @说明 菜单管理
 **/
@RestController
@RequestMapping("/sysMenu/")
public class SysMenuController extends BaseController{
    @Autowired
    private SysMenuService sysMenuService;
    /**
     * @return 导航菜单
     **/
    @PostMapping(value="navigationList")
    public Result navigationList() {
    	String userId = getCurrUserId().toString();
        List<Map<String,Object>> list = sysMenuService.navigationList(userId,"2");
        return new Result().success(list);
    }
    
}